import { Routes, RouterModule }  from '@angular/router';
import { GroupComponent } from './groupmanagement.component';
import { GrouplistComponent } from './components/grouplist/grouplist.component';
import { GroupdetailComponent } from "./components/groupdetail/groupdetail.component";

// noinspection TypeScriptValidateTypes
const routes: Routes = [
  {
    path: '',
    component: GroupComponent,
    children: [
     
      { path: 'grouplist', component:GrouplistComponent },
    { path: 'grouplist/detail/:groupId', component:GroupdetailComponent },
      
    ]
  }
];

export const routing = RouterModule.forChild(routes);
